<?php
namespace app\common\model;

/**
* City模型
*/
class City extends BaseModel
{
	public function getCitysByParentId($parent_id = 0){
		$data = [
			'status' => 1,
			'parent_id' => $parent_id,
		];

		$order = [
			'id' => 'desc',
		];

		$result = $this->where($data)
					->order($order)
					->select();
		// echo $this->getLastSql();
		return $result;
	}
}